<script type="text/javascript">
	
class People {
	constructor(name, age) {
		this.name = name;
		this.age = age;
	}

	say() {
		alert('我的名字是'+this.name);
	}
}

let people = new People('cuihao', 12);
people.say();

</script>